package com.tm.portal.web.control;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tm.portal.biz.User;
import com.tm.portal.dao.DaoFactory;

@Controller
@RequestMapping(value="/user")
public class UserController extends AbstractController
{
	@RequestMapping(value="/")
	public String showPage(Model model)
	{
		User user = DaoFactory.getInstance().getDao().get(User.class, "c28d44b5c7c411e3aad500163e02");
		model.addAttribute("user", user);
		return "index";
	}
}
